<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            Registro de Imóveis
        </ui:define>

        <ui:define name="content">

            <h:form id="pesquisarImovelForm">
                <p:messages id="pesquisarImovelMessages" autoUpdate="true" />

                <div class="row">
                    <div class="column2 index_menu">
                        <p:menu>
                            <p:submenu label="Menu">
                                <p:menuitem url="criarImovel.xhtml" value="Registrar Imóvel" />
                                <p:menuitem url="pesquisarImovel.xhtml" value="Pesquisar Imóvel" />
                            </p:submenu>

                            <p:submenu label="Certidões">
                                <p:menuitem url="emitirCertidaoPositiva.xhtml" value="Certidão Positiva" />
                                <p:menuitem url="emitirCertidaoNegativa.xhtml" value="Certidão Negativa" />
                            </p:submenu>
                           <p:submenu label="Relatórios">
                                <p:menuitem url="criarImovel.xhtml" value="Estatisticas" />
                            </p:submenu>
                        </p:menu>
                    </div>   
                </div>
            </h:form>
            
            <script>
                $(document).ready(function() {
                    setSelectedMenu('#imovel');
                });
            </script>
            
        </ui:define>
    </ui:composition>

</html>
